package com.example.fanday.play.di.component;

import android.app.Activity;
import android.content.Context;

import com.example.fanday.play.cons.Dagger2Cons;
import com.example.fanday.play.di.module.ActivityModule;
import com.example.fanday.play.di.scope.ContextLife;
import com.example.fanday.play.di.scope.PerActivity;
import com.example.fanday.play.di.scope.PerApp;
import com.example.fanday.play.mvp.view.MainActivity;
import com.example.fanday.play.mvp.view.iview.MainView;

import dagger.Component;

/**
 * Created by fanday on 2017/8/13.
 */
@PerActivity
@Component(modules = ActivityModule.class,dependencies = ApplicationComponent.class)
public interface ActivityComponent {
    @ContextLife(Dagger2Cons.APPLICATION)
    Context getApplication();
    @ContextLife(Dagger2Cons.ACTIVITY)
    Context getActivityContext();

    Activity getActivity();

    void inject(MainActivity mainActivity);



}
